summaryrefslogtreecommitdiff
path: root/app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx')
-rw-r--r--app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx5
1 files changed, 3 insertions, 2 deletions
diff --git a/app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx b/app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx
index 93b948c6..ebd4cbb3 100644
--- a/app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx
+++ b/app/[lng]/evcp/(evcp)/(system)/qna/[id]/page.tsx
@@ -2,8 +2,9 @@ import { getQnaById } from "@/lib/qna/service";
import QnaDetail from "@/lib/qna/table/qna-detail";
import { notFound } from "next/navigation";
-export default async function QnaDetailPage({ params }: { params: { id: string } }) {
- const question = await getQnaById(params.id);
+export default async function QnaDetailPage({ params }: { params: Promise<{ id: string }> }) {
+ const resolvedParams = await params;
+ const question = await getQnaById(resolvedParams.id);
if (!question) {
notFound();